<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <base href="<%=basePath%>">
    <title>查询作业</title>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/f/navs.css">
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/f/default.css">
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/f/assignment.css"/>
    <link href="<%=path %>/css/f/stuviewa.css" rel="stylesheet" type="text/css">
	<script src="js/jquery.min.js"></script>
	<script src="js/f/default.js"></script>
  </head>
  
	<!--已提交作业-->
  <body>
  	<div class="all">
		<jsp:include page="/nav.jsp"></jsp:include>
       	<div class="rightall float-left">
            <div class="already">
                <div class="already-title">
					<div class="left">作业成绩</div>
				</div>
                <div class="content">
                	<form method="post" action="student/submission.do">
                        <div style="margin-top: 15px;">
                            <span style=" margin-left:40%;"></span>
                            <input type="hidden" value="${sessionScope.curUser.userId }" name="stuId">
                            <input  class="task" name="content" placeholder="老师/科目" type="text">
                            <span style=" margin-left:50px;"></span>
                            <button class="task btn-style" style="width:5%" type="submit">查找</button>
                        </div>
                   	</form>
                    <table class="table"  cellpadding="0" cellspacing="0" id="aa">
		                	<tr class="tr-style-head">
		                    	<td>作业发布老师</td>
		                    	<td>作业科目</td>
		                    	<td>作业布置时间</td>
		                    	<td>作业状态</td>
                                <td>成绩</td>
		                    </tr>
		                    <c:forEach var="s" items="${hms }">
			                	<tr class="tr-style">
			                    	<td>${s.tchName }</td>
			                    	<td>${s.courseName }</td>
			                    	<td>${s.createTime }</td>
			                    	<td>${s.workState }</td>
	                                <td>${s.workLevel }</td>
			                    </tr>
		                    </c:forEach>
                	</table>
		            <c:if test="${pages > 1 }">
		               		<div class="previous">
			               		<c:if test="${pageNo>1}">
			                    	<a href="student/submission.do?pageNo=${pageNo - 1}">上一页</a>
			                	</c:if>
			                   	<c:forEach var="p" begin="1" end="${pages }" step="1">
			                   		<c:if test="${p==pageNo }">
			                   			<span style="font-size:18px;color:#446ee6;">&nbsp;${p}&nbsp;</span>
			                   		</c:if>
			                   		<c:if test="${p!=pageNo }">
			                   			<a href="student/submission.do?pageNo=${p }" >&nbsp;${p}&nbsp;</a>
			                   		</c:if>
			                   	</c:forEach>
			                    <c:if test="${pageNo<pages}">
			                    	<a href="student/submission.do?pageNo=${pageNo + 1 }">下一页</a>
			                	</c:if>
		                   	</div>
		                </c:if>
               </div>
           	</div>
        </div>
        <div class="float-clear"></div>
    </div>
   </body>
</html>
